package day03;

import java.util.Scanner;

/**
 *   **********
 *   **********
 *   **********
 */
public class ForDemo02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入行数和列数:");
        int rows = scanner.nextInt();
        int cols = scanner.nextInt();
        for(int i=1;i<=rows;i++){//控制行数
            for(int j=1;j<=cols;j++){
                System.out.print("*");
            }
            //换行
//            System.out.println();
            System.out.print("\n");
        }

    }
}
